<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="java.util.Date"%>
<%@ page session="true" import="java.util.ArrayList"
	errorPage="commonErrorPage.jsp"%>
<%@ include file="menu.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>


	<jsp:include page="menu.jsp"></jsp:include>


	<%!public String getName() {

		return "Santhosh";

	}%>

	<%!public int getAge() {

		return 20;
	}%>


	<%
		int i = 10;

		int results = 10 / 2;
	%>


	<%!String name1 = "Vasu";
	String name2 = "Sriram";
	String name3 = "Veerendhra";
	
	%>


	<h1>Hello world</h1>
	<h2 style="background-color: blue">
		Today's Date is -
		<%=new Date()%>







	</h2>


	<h1>

		<%
			if (getAge() >= 18) {
		%>

		Yes you are eligible for Vote.

	</h1>

	<%
		} else {
	%>
	<h2>Sorry You are not allowed to Vote</h2>

	<%
		}
	%>


	<table>
		<thead>
			<tr>
				<th>Number</th>
				<th>Name</th>
			</tr>
		</thead>
		<tbody>
			<tr>
				<td>1</td>
				<td><%=name1%></td>
			</tr>
			<tr>
				<td>2</td>
				<td><%=getName()%></td>
			</tr>
			<tr>
				<td>3</td>
				<td><%=getName()%></td>
			</tr>



		</tbody>
	</table>
	<%
		request.setAttribute("fromWelcomePage", "I am from Welcome Page");
	%>

	<jsp:forward page="anotherJsp.jsp"></jsp:forward>

</body>
</html>